def IsPrime(n):
    if n <= 1 or n % 2 == 0 and n != 2:
        return False
    elif n == 2:
        return True
    else:
        for i in range(3, n, 2):
            if n % i == 0:
                return False
            if i * i > n:
                break
    return True


def main():
    for i in range(100):
        if IsPrime(i):
            print(i, end=" ")


main()